Repository navigation
docs(id): the id book — 67 chapters at /code/id/ (#13332) - #13358
Conversation
A complete mdBook for the ID platform, surveyed from the shipped code: getting-started, concepts, the full CLI/REPL/web/MCP reference, the library (crates, Plaza/Roc guests, native shell), tutorials, the design chapters with the 408-record index, development and operations. Built by pkgs/id/docs.nix as the id-docs flake package; zero-warning build.
mcpx-docs.yml builds the id book with siteUrl /code/id/ and stages it under site/id in the same single deploy as the mcpx, fleet and atlas books. id-docs.yml is the build-only check, mirroring atlas-docs.yml.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 53 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08c0f9bbd0
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| push: | ||
| branches: [main] |
There was a problem hiding this comment.
Run the build-only docs workflow nightly instead of on push
This new build-only workflow runs on every push to main, contrary to .github/ci-policy.md's nightly-only CI policy. The policy explicitly reserves push triggers for deployments, and this workflow explicitly never deploys; publication already happens in mcpx-docs.yml. Adding another unconditional per-commit build recreates the CI queue pressure that motivated the policy. Use the nightly schedule plus manual dispatch instead.
AGENTS.md reference: AGENTS.md:L29-L30
Useful? React with 👍 / 👎.
| printf 'hello from node a\n' > notes.txt | ||
| id --new node-a put notes.txt |
There was a problem hiding this comment.
Resolve input files before switching into the new data directory
Following this example from a fresh directory fails immediately: notes.txt is created in the caller's directory, but src/main.rs changes into .iroh/node-a/ before dispatching the command, and cmd_put_local_file reads the relative path unchanged. Consequently, put cannot find the file and the rest of the tutorial has no stored content. Pass an absolute input path or create the file inside the node directory. Apply the same correction to Step 5's second.txt and the initial put example in organise-with-tags.md.
Useful? React with 👍 / 👎.
| id --data-dir .iroh/node-b cat notes.txt | ||
| ``` | ||
|
|
||
| The first command prints `hello from node a`. The list now shows `notes.txt` in node B's own store: a successful `get` stores the blob locally, it does not stream it on every read. `id cat` is `get` forced to stdout, and prints the same line from node B's store. |
There was a problem hiding this comment.
Explicitly import the downloaded file before checking the local store
Even after correcting the input paths, the advertised local-store checks fail. cmd_get_one_remote in crates/id-cli/src/commands/get.rs calls open_store(true), which creates an ephemeral MemStore, exports the downloaded bytes to the output file, and shuts that store down without registering a local name. Therefore node B's list remains empty and its subsequent cat notes.txt fails. Explain that remote get exports a file, and add an explicit local put before promising persistent storage or offline named reads.
Useful? React with 👍 / 👎.
| ```sh | ||
| printf 'second file\n' > second.txt | ||
| id --data-dir .iroh/node-a put second.txt | ||
| id send `<NODE_A_ID>` second.txt --to `<NODE_B_ID>` |
There was a problem hiding this comment.
Start and authorize the destination server before sending
Step 5 cannot perform the promised transfer even after the preceding file-path problems are fixed: the tutorial starts serve only for node A, while every node B command is a short-lived client invocation. The send implementation documents its contract as copying “from one running server to another,” and id-sync's transfer path connects to B's metadata protocol. Start B's server with permission for A to write, and run the request using an identity authorized by A; merely printing B's node ID does not make it a reachable transfer destination.
Useful? React with 👍 / 👎.
| [[groups.members]] | ||
| user = "alice" | ||
| role = "admin" |
There was a problem hiding this comment.
Make the worked server configuration pass startup validation
An operator copying this worked configuration cannot start the server: ServerConfig::parse in crates/id-cli/src/server_config/parse.rs rejects a group whose members explicitly include its creator with CreatorListed, because the creator already becomes Admin automatically. After removing this redundant member, the example still fails with EmptyCreate, since its [create] table specifies only min_role without any allowed users or groups. Remove the creator's member entry and name an allowed group such as toy-club in [create].groups so the example actually provisions the advertised configuration.
Useful? React with 👍 / 👎.
|
|
||
| ```sh | ||
| id --data-dir .iroh/library tag search kind:list | ||
| id --data-dir .iroh/library tag search kind:list topic:books |
There was a problem hiding this comment.
Use a supported single-tag conjunction in the search tutorial
With the tags created in Step 2, this command returns (no matching tags), not the promised reading.txt. TagStore::search_by_query in crates/id-store/src/tags.rs intersects complete (subject, key, value) tuples, so every term must match the same tag; separate kind:list and topic:books tags on one file cannot satisfy this conjunction. The new reference/cli-tags.md already explains this limitation correctly. Replace the example with a supported conjunction, such as topic:books reading, and describe the single-tag matching rule rather than promising cross-tag filtering.
Useful? React with 👍 / 👎.
|
|
||
| | Name | Effect | | ||
| |---|---| | ||
| | `ID_SHELL_FILE_READ_ROOT` | When set, configures an additional restriction on the native shell's file-read root. When unset, the file-read root is not additionally restricted or configured by environment. | |
There was a problem hiding this comment.
Describe the file-read variable as an opt-in permission grant
A user setting this variable to add the advertised restriction instead enables access that is disabled by default. In crates/id-native-shell/src/main.rs, the adapter starts without grants or executors; setting ID_SHELL_FILE_READ_ROOT calls grant_file_read(..., true), granting the connected world client.file.read under that directory and acknowledging that returned bytes become durable world-journal data visible to the host/operator and journal readers. Document this enabling grant and disclosure explicitly, and state that leaving the variable unset disables file reads. Correct the matching descriptions in reference/configuration.md and concepts/shells.md as well.
Useful? React with 👍 / 👎.
The id book (#13332)
A complete documentation book for the ID platform, built the house way (bookwright): surveyed from the shipped code first, written against the survey, coverage proven mechanically. It joins the existing GitHub Pages site at
/code/id/in the same combined deploy as the mcpx, fleet and atlas books — no standalone deploy.67 chapters, ~126,700 words, under
pkgs/id/book/:Honesty notes the surveys established and the book states plainly: the hosted Worker is a local-only scaffold that fails closed (not deployed); there is no MCP server or mcpx wiring for ID; the #3404 migration-control core landed 2026-11-23 (PR #13347) as library code with no surface wired yet.
Wiring
pkgs/id/docs.nix+pkgs/id/book.toml;idDocs/id-docsinlib/default.nix(mirrors the atlas wiring).mcpx-docs.yml: builds the book withsiteUrl /code/id/and stages it undersite/idin the single Pages deploy.id-docs.yml: build-only check, mirroringatlas-docs.yml.pkgs/id/README.md: a "The book" section and the DOC-01 operator/contributor docs-sync contract naming the book.Verification
nix build .#id-docsand the deploy-variant override build (siteUrl = "/code/id/"): both succeed with zero mdBook warnings; 70 HTML pages emitted.ID_*env names, crates and Roc apps set-diffed against the surveys (remaining diffs hand-checked: list-form gallery verbs, one stale doc route spelling the book deliberately omits); design-record index 408/408 set-identical to the survey inventory.Survey disagreements (56 items across CLI help, crate docs, web docs and the design archive) are filed as grouped issues after this merges, following the Atlas pattern.
Closes #13332.
{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T14:12:04Z", "session_id": null, "lane": null, "host": "amd", "worktree": "/home/user/wt-id-book", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/wt-id-book", "repo": "developing-today/code", "branch": "id-book-13332", "sha": "08c0f9bbd00446a32b63571141860d4f0728eebc" }, "auth_subject": "agent-next-21-local", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.